package StudyCode.summary.regularexpressionsmatch;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class FindMatchByUsingRegularExpression {
	private static String jaText = "this is a test ";

	public static void main(String[] args) {
		Pattern p = Pattern.compile("japanese letter");
		Matcher m = p.matcher(jaText);
		if (m.find()) {
			System.out.println(m.group());
		} else {
			System.out.println("未匹配到");
		}
	}
}
